#!/usr/bin/python
# -*- coding: UTF-8 -*-

from abc import ABCMeta, abstractmethod


class MysqlBuilderAbstract:
    __metaclass__ = ABCMeta

    @abstractmethod
    def build_server_address(self,host):
        pass

    @abstractmethod
    def build_username(self,user):
        pass

    @abstractmethod
    def build_password(self,passwd):
        pass

    @abstractmethod
    def build_port(self,port):
        pass

    @abstractmethod
    def use_db(self,db):
        pass

    @abstractmethod
    def build_chart(self,chartset):
        pass

    @abstractmethod
    def get_moudle(self):
        pass


class Sqlite3BuilderAbstract:
    __metaclass__ = ABCMeta

    @abstractmethod
    def build_file_path(self, dbPath):
        pass

    @abstractmethod
    def build_isolation_level(self):
        pass
